/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.devmng.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 通用附件Entity
 * @author panda
 * @version 2017-12-08
 */
public class CommonAtta extends DataEntity<CommonAtta> {
	
	private static final long serialVersionUID = 1L;
	private String attaOriname;		// 附件名称
	private String attaGuid;		// 附件GUID
	private String attaPath;		// 附件路径
	private Long attaSize;		// 附件大小
	private String attaUrl;		// 附件链接
	private String attaContentType;		// 附件类型
	
	public CommonAtta() {
		super();
	}

	public CommonAtta(String id){
		super(id);
	}

	@Length(min=0, max=500, message="附件名称长度必须介于 0 和 500 之间")
	public String getAttaOriname() {
		return attaOriname;
	}

	public void setAttaOriname(String attaOriname) {
		this.attaOriname = attaOriname;
	}
	
	@Length(min=0, max=64, message="附件GUID长度必须介于 0 和 64 之间")
	public String getAttaGuid() {
		return attaGuid;
	}

	public void setAttaGuid(String attaGuid) {
		this.attaGuid = attaGuid;
	}
	
	@Length(min=0, max=200, message="附件路径长度必须介于 0 和 200 之间")
	public String getAttaPath() {
		return attaPath;
	}

	public void setAttaPath(String attaPath) {
		this.attaPath = attaPath;
	}
	
	public Long getAttaSize() {
		return attaSize;
	}

	public void setAttaSize(Long attaSize) {
		this.attaSize = attaSize;
	}
	
	@Length(min=0, max=500, message="附件链接长度必须介于 0 和 500 之间")
	public String getAttaUrl() {
		return attaUrl;
	}

	public void setAttaUrl(String attaUrl) {
		this.attaUrl = attaUrl;
	}
	
	@Length(min=0, max=200, message="附件类型长度必须介于 0 和 200 之间")
	public String getAttaContentType() {
		return attaContentType;
	}

	public void setAttaContentType(String attaContentType) {
		this.attaContentType = attaContentType;
	}
	
}